package com.jy.rhin.config;

import com.jy.rhin.domain.document.filter.ContentEncoder;
import com.jy.rhin.infra.sign.ContentEncoder4Sha1;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @Author: lww
 * @Date: 2022/5/24
 */
@Configuration
@EnableConfigurationProperties({MessageCompensationProperties.class, ChangShanYanShiProperties.class})
@MapperScan(value = {"com.jy.rhin.infra.cda.mapper"})
public class ApplicationConfig {


    @Bean
    public ContentEncoder getSignContent() {
        return new ContentEncoder4Sha1();
    }
}
